/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.abc;


/**
 * <p>Project: jse2303 - Ex6
 * <p>Powered by webrx On 2023-07-06 15:51:28
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex6 {
    public static void main(String[] args) {


        //Scanner sc = new Scanner(System.in);

        int id = 13;
        String name = "李四";
        double money = 12.523424;
        System.out.println("编号：" + id + "，姓名：" + name + "，金额：" + money + "元");
        System.out.printf("编号：%03d，姓名：%s，金额：%.2f元。%n", id, name, money);

        System.out.printf("%.2f%n", 3.156);

        System.out.printf("%tF%n", System.currentTimeMillis());
        System.out.printf("%s %S%n", "hello", "hello");
        System.out.printf("%s %<S\r\n", "hello中国");


        //System.out.printf("hello%n");
        //System.out.println("hello");
        //System.out.print("hello\r\n");

        int a = 12;
        int b = 7;
        if (a % b == 0) {
            System.out.printf("%d ÷ %d = %d %n", a, b, a / b);

        } else {
            System.out.printf("%d ÷ %d = %d ... %d %n", a, b, a / b, a % b);

        }
    }
}
